<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .div{
            width: 150px;
            height: 300px;
            float: left;
            margin-left: 20px;
            overflow: hidden;
            border: 1px solid grey;
            margin-top: 20px;
        }
        .main{
            width: 600px;
            margin: 0 auto;
        }
    </style>
</head>
<body>

    <?php if(is_array($blogs)): $i = 0; $__LIST__ = $blogs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$blog): $mod = ($i % 2 );++$i;?><div class="main">
            <div class="div">
                <img src="/php.homework/blog/<?php echo ($blog["url"]); ?>"width="150" height="200">
                <h3><?php echo ($blog["title"]); ?></h3>
                <h5><?php echo ($blog["summary"]); ?></h5>
            </div>
        </div><?php endforeach; endif; else: echo "" ;endif; ?>

</body>
</html>